/// 检查项
class CheckItem {
  String id;
  String doctorAccount;
  String patientAccount;
  String checkTime;
  String doctorName;
  String patientName;
  String createBy;
  String updateBy;
  String createDate;
  String updateDate;
  String delFlag;
  String remarks;
  String enclosure;
  String checkName;
  String checkId;
  List checkRecordItemList;

  CheckItem({
    this.id,
    this.doctorAccount,
    this.patientAccount,
    this.checkTime,
    this.doctorName,
    this.patientName,
    this.createBy,
    this.updateBy,
    this.createDate,
    this.updateDate,
    this.delFlag,
    this.remarks,
    this.enclosure,
    this.checkName,
    this.checkId,
    this.checkRecordItemList,
  });

  factory CheckItem.fromJson(Map<String, dynamic> data) {
    List items = [];
    if (data['checkRecordItemList'] != '') {
      items = data['checkRecordItemList'];
    }
    return CheckItem(
      id: data['id'],
      doctorAccount: data['doctorAccount'],
      patientAccount: data['patientAccount'],
      checkTime: data['checkTime'],
      doctorName: data['doctorName'],
      patientName: data['patientName'],
      createBy: data['createBy'],
      updateBy: data['updateBy'],
      createDate: data['createDate'],
      updateDate: data['updateDate'],
      delFlag: data['delFlag'],
      remarks: data['remarks'],
      enclosure: data['enclosure'],
      checkName: data['checkName'],
      checkId: data['checkId'],
      checkRecordItemList: items,
    );
  }
}
